<template>
	<view class="bigBox">
		<u-navbar leftIconColor='#fff' :autoBack="true" bgColor='#000' title='订单详情' titleStyle="color:#fff;">
		</u-navbar>
		<view class="staticBox">
			<view class="title">
				等待支付
			</view>
			<view class="text">
				订单已生成，请尽快支付
			</view>
		</view>
		<view class="addressBox">
			<view class="box">
				<view class="icon">
					<image src="@/static/icon/address.png"></image>
				</view>
				<view class="text">
					<view class="top">
						<view class="name">李老板</view>
						<view class="number">1810 **** 2267</view>
					</view>
					<view class="address">广东省广州市越秀区先烈中路80号1906-1907</view>
				</view>
				<!-- <view class="icon">
					<u-icon name='arrow-right' color='#101010'></u-icon>
				</view> -->
			</view>
		</view>
		<view class="logistics" @click="goLogistics">
			<view class="box">
				<view class="icon">
					<image src="@/static/icon/logistics.png"></image>
				</view>
				<view class="text">
					<view class="name">联邦物流</view>
					<view class="number">您的快递已出仓</view>
				</view>
				<view class="icon">
					<u-icon name='arrow-right' color='#101010'></u-icon>
				</view>
			</view>
		</view>
		<view class="shopBox">
			<view class="box">
				<u-avatar :src="src" shape="square" size='40rpx'></u-avatar>
				<view class="name">王者叫唤师直播间商品清单</view>
			</view>
		</view>
		<view class="shopDetails">
			<view class="box">
				<u-avatar :src="src" shape="square" size='160rpx'></u-avatar>
				<view class="details">
					<view class="name">索尼（SONY）KDL-50W660F 50英寸全高清液晶电视（黑色）</view>
					<view class="price">
						<view class="tabs">
							<template v-for="item in 2">
								<view class="tabBtn">单人沙发</view>
							</template>
							<text class="text">X 1</text>
						</view>
						<view class="number">¥1288.00</view>
					</view>
				</view>
			</view>
		</view>
		<view class="totalBox">
			<view class="box">
				<view class="textBox">
					<view class="name">商品合计</view>
					<view class="present">¥1288.00</view>
				</view>
				<view class="textBox">
					<view class="name">优惠券</view>
					<view class="present">-¥1288.00</view>
				</view>
				<view class="textBox">
					<view class="name">运费</view>
					<view class="present1">包邮</view>
				</view>
			</view>
		</view>
		<view class="wordsBox">
			<view class="box">
				<view class="name">订单留言</view>
				<u--textarea class="field" v-model="value1" border='none' autoHeight placeholder="选填，建议先与商家协商一致">
				</u--textarea>
			</view>
		</view>
		<view class="payMoney">
			<view class="box">
				<view class="name">订单合计</view>
				<view class="money">¥1288.00</view>
			</view>
		</view>
		<view class="orderData">
			<view class="box">
				<view class="data">
					<view class="name">订单信息</view>
					<view class="text"></view>
				</view>
				<view class="data">
					<view class="name">订单编号</view>
					<view class="text">2193010242093123132</view>
				</view>
				<view class="data">
					<view class="name">实付金额</view>
					<view class="text">¥1288.00</view>
				</view>
				<view class="data">
					<view class="name">订单生成时间</view>
					<view class="text">2020-10-10 12:00</view>
				</view>
				<view class="data">
					<view class="name">支付方式</view>
					<view class="text">微信支付</view>
				</view>
				<view class="data">
					<view class="name">支付时间</view>
					<view class="text">2020-10-10 12:00</view>
				</view>
			</view>
		</view>
		<view class="payBtnBox">
			<view class="box">
				<view class="text">订单实付 <text class="money">¥1088.00</text></view>
				<view class="payBtn">立即支付</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: 'https://cdn.uviewui.com/uview/album/7.jpg',
				value1: ''
			}
		},

		methods: {
			getValue(list) {
				console.log(list, 'B页面传递的数据')
			},
			goLogistics(){
				uni.navigateTo({
					url: '/pages/shop/logistics'
				})
			},
			goAddress() {
				uni.navigateTo({
					url: '/pages/shop/addressManagement'
				})
			}
		}
	}
</script>

<style>
	.bigBox {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 160rpx;
		height: calc(100vh - 160rpx);
		padding-bottom: 160rpx;
		background-color: #F8F8F8;
	}
</style>
<style lang="less">
	.orderData {
		margin-top: 10rpx;
		width: 750rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		padding: 20rpx 0;

		.box {
			width: 670rpx;
			display: flex;
			flex-direction: column;

			.data {
				margin-top: 20rpx;
				display: flex;

				.name {
					color: rgba(12, 16, 47, 100);
					font-size: 24rpx;
				}

				.text {
					margin-left: 30rpx;
					color: rgba(190, 199, 209, 100);
					font-size: 24rpx;
				}
			}

		}
	}

	.staticBox {
		width: 750rpx;
		height: 160rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		background-color: #2133FF;

		.title {
			width: 670rpx;
			font-weight: 700;
			color: rgba(255, 255, 255, 100);
			font-size: 28rpx;
		}

		.text {
			width: 670rpx;
			color: rgba(255, 255, 255, 100);
			font-size: 24rpx;
		}
	}

	.payBtnBox {
		position: fixed;
		bottom: 0;
		margin-top: 20rpx;
		padding-top: 10rpx;
		width: 750rpx;
		padding-bottom: 40rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;

		.box {
			width: 670rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.text {
				color: rgba(190, 199, 209, 100);
				font-size: 20rpx;

				.money {
					color: rgba(255, 78, 95, 100);
					font-size: 28rpx;
				}
			}

			.payBtn {
				width: 216rpx;
				height: 70rpx;
				line-height: 70rpx;
				background-color: rgba(254, 76, 70, 100);
				color: rgba(255, 255, 255, 100);
				font-size: 24rpx;
				text-align: center;
			}
		}


	}

	.payMoney {
		margin-top: 8rpx;
		width: 750rpx;
		height: 126rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;

		.box {
			width: 670rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.name {
				color: rgba(12, 16, 47, 100);
				font-size: 24rpx;
				font-weight: 600;
			}

			.money {
				font-weight: 700;
				color: rgba(255, 78, 95, 100);
				font-size: 28rpx;
			}
		}
	}

	.wordsBox {
		margin-top: 2rpx;
		width: 750rpx;
		background-color: #fff;
		display: flex;
		padding: 20rpx 0;
		justify-content: center;

		.box {
			width: 670rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.name {
				color: rgba(12, 16, 47, 100);
				font-size: 24rpx;
				font-weight: 600;

			}

			.field {
				margin-left: 14rpx;
			}
		}
	}

	.totalBox {
		margin-top: 2rpx;
		width: 750rpx;
		height: 254rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;

		.box {
			width: 670rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-around;

			.textBox {
				display: flex;
				justify-content: space-between;

				.name {
					color: rgba(12, 16, 47, 100);
					font-size: 24rpx;
					font-weight: 600;
				}

				.present {
					font-weight: 700;
					color: rgba(12, 16, 47, 100);
					font-size: 28rpx;
				}

				.present1 {
					color: rgba(190, 199, 209, 100);
					font-size: 28rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
		}
	}

	.shopDetails {
		width: 750rpx;
		height: 208rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;

		.box {
			width: 670rpx;
			display: flex;
			align-items: center;

			.details {
				height: 208rpx;
				margin-left: 20rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-around;

				.name {
					font-weight: 700;
					color: rgba(0, 7, 15, 100);
					font-size: 24rpx;
				}

				.price {
					display: flex;
					align-items: center;
					justify-content: space-between;

					.tabs {
						display: flex;
						align-items: center;

						.tabBtn {
							padding: 0 10rpx;
							height: 40rpx;
							line-height: 40rpx;
							background-color: rgba(248, 248, 248, 100);
							color: rgba(190, 199, 209, 100);
							font-size: 20rpx;
							margin-right: 10rpx;
						}

						.text {
							color: rgba(190, 199, 209, 100);
							font-size: 20rpx;
						}
					}

					.number {
						color: rgba(12, 16, 47, 100);
						font-size: 28rpx;
					}
				}
			}
		}
	}

	.shopBox {
		margin-top: 8rpx;
		width: 750rpx;
		height: 60rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;

		.box {
			width: 670rpx;
			display: flex;
			align-items: center;

			.name {
				margin-left: 20rpx;
				color: rgba(44, 101, 247, 100);
				font-size: 24rpx;
			}
		}
	}

	.logistics {
		margin-top: 4rpx;
		width: 750rpx;
		height: 120rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;
		.box {
			width: 670rpx;
			height: 120rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.text {
				width: 550rpx;
				margin-left: 40rpx;
				display: flex;
				flex-direction: column;
				.name {
					font-weight: 700;
					color: rgba(12, 16, 47, 100);
					font-size: 24rpx;
				}

				.number {
					
					color: rgba(190, 199, 209, 100);
					font-size: 24rpx;
				}
			}

			.icon {
				width: 40rpx;

				image {
					width: 40rpx;
					height: 40rpx;
				}
			}
		}
	}

	.addressBox {
		margin-top: 20rpx;
		width: 750rpx;
		height: 164rpx;
		background-color: #fff;
		display: flex;
		justify-content: center;

		.box {
			width: 670rpx;
			height: 164rpx;
			display: flex;
			align-items: center;
			justify-content: flex-start;

			.icon {
				width: 40rpx;

				image {
					width: 40rpx;
					height: 40rpx;
				}
			}

			.text {
				margin-left: 40rpx;
				height: 140rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-around;

				.top {
					display: flex;
					align-items: center;
					justify-content: flex-start;

					.name {
						font-weight: 700;
						color: rgba(0, 7, 15, 100);
						font-size: 24rpx;
					}

					.number {
						margin-left: 40rpx;
						color: rgba(190, 199, 209, 100);
						font-size: 24rpx;
					}
				}

				.address {
					color: rgba(190, 199, 209, 100);
					font-size: 24rpx;
				}
			}
		}
	}
</style>
